//
//  DebugManager.h
//  SuDian
//
//  Created by coder on 2019/5/17.
//  Copyright © 2019 DHK. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DebugModel : NSObject

/**
 环境名称
 */
@property (nonatomic, strong) NSString *environmentName;
/**
 请求host
 */
@property (nonatomic, strong) NSString *webHost;
/**
 H5host
 */
@property (nonatomic, strong) NSString *H5Host;
/**
 其他自定义信息
 */
@property (nonatomic, strong) id customInfo;

@end

@interface DebugManager : NSObject

+ (id)shareManager;
/**
 设置环境信息

 @param releaseModel 生产环境模型
 @param debugModels 测试环境模型数组
 */
- (void)setupRelease:(DebugModel *)releaseModel debug:(NSArray <DebugModel *>*)debugModels;

/**
 设置环境改变前后执行的代码

 @param initializeBlock 环境切换后，初始化操作
 @param changeBlock 环境切换前，清理操作
 */
- (void)initialize:(void(^)(void))initializeBlock changeBlock:(void(^)(void))changeBlock;
/**
 调出切换环境列表
 */
- (void)changeEnvironment;

/**
 当前webHost
 */
- (NSString *)webHost;
/**
 当前H5Host
 */
- (NSString *)H5Host;

@end

